package ch02;
import java.util.Scanner;
/**
 * Created by hasee on 2017/6/15.
 */
public class Time {
    public static void main(String[] args) {
        int a,b,c,d;
        Scanner scan = new Scanner(System.in);
        System.out.println("输入小时：");
        a = scan.nextInt();
        System.out.println("输入分钟：");
        b = scan.nextInt();
        System.out.println("输入秒数：");
        c = scan.nextInt();

        System.out.println("您输入的时间是："+a+"小时"+b+"分钟"+c+"秒");

        d = (a*3600)+(b*60)+c;
        System.out.println("转化成秒为："+d);


    }
}
